package org.lsy.service;

import org.apache.dubbo.config.annotation.Service;
import org.apache.dubbo.rpc.RpcContext;

/**
 * @author liusy95
 * @version 1.0
 * @date 2020/6/30
 */
@Service
public class HelloServiceImpl implements HelloService {

    @Override
    public String hello(String context) {
        System.out.println("request ip: " + RpcContext.getContext().getAttachment("ip"));
        return "hello, " + context;
    }
}
